#pragma once
#include "ConnectionMng.h"
#include "IOServicePool.h"

class WebSocketServer {
public:
    WebSocketServer(net::io_context &ioc, unsigned short port);

    WebSocketServer(const WebSocketServer &) = delete;

    WebSocketServer &operator =(const WebSocketServer &) = delete;

    void StartAccept();

private:
    net::io_context &_ioc;
    net::ip::tcp::acceptor _acceptor;
};
